package pcb.views 
{
	import com.intel.core.UIComponent;
	import com.intel.utils.TextRender;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class ModuleInfoScreen extends UIComponent 
	{
		private var moduleTitleView:module_section_screen;
		
		public function ModuleInfoScreen() 
		{
			
		}
		
		override protected function addChildren():void 
		{
			moduleTitleView = new module_section_screen();
			addChild(moduleTitleView);
		}
		
		public function setModuleTitle(title:String):void 
		{
			if(moduleTitleView) {
				TextRender.createLabel(moduleTitleView.mcModuleTitle.txt_module, title);				
			}
		}

		public function setSectionTitle(title:String):void 
		{
			if(moduleTitleView) {
				TextRender.createLabel(moduleTitleView.txt_section, title);				
			}
		}
		
		public function gotoCourseImage(course_name:String = "core"):void {
			if(moduleTitleView) moduleTitleView.mcImage.gotoAndStop(course_name);
		}
		
	}
	
}